package com.baosight.risk.common.quartz;


import com.baosight.risk.api.riim.RiimRiskImportService;
import com.baosight.risk.mapper.quartz.SysJobParamMapper;
import com.baosight.risk.mapper.xtzy.XtzyCompanyMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Slf4j
@RequestMapping("/admin")
public class RireRiskReportSingleSub {


    @Autowired
    private RiimRiskImportService importService;




@GetMapping("/sendSingleInformation")
    public void sendSingleInformation(@RequestParam String id) throws Exception{
        System.out.println("进入定时任务————重点风险披露报告(基地)");
        importService.saveSingleReport(id);
        System.out.println("执行结束————重点风险披露报告(基地)");
    }
}
